<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="./sweetalert.css" rel="stylesheet">
  <!--  <script src="../jquery2.1.1.min.js"></script>-->
    <script src="./sweetalert-dev.js" type="text/javascript"></script>
</head>
<body>



<script>



    //sweetalert  1版本中   swal没有返回值
   const p= swal({
        title: "上传成功",
        type: "success",
        showConfirmButton: false,
        timer: 1000
    })
   console.log(p)


    swal({
        title: '提示',
        text: "确认删除吗？",
        type: 'warning',
        showCancelButton: true,
        confirmButtonText: '确认',
        cancelButtonText: '取消',
        showLoaderOnConfirm: true, //加载按钮是否可见

    });

</script>

</body>
</html>